home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 28
/
PC Gamer IT CD 28 1-2.iso
/
INCUXTRA
/
IncubationXMas.exe
/
Missions
/
XMAS.lcl
next >
Wrap
INI File
|
1997-12-18
|
7KB
|
339 lines
[LCL]
*========================================================================================
*
* LCL_Program: Missions\wtest1_6.lcl
* ************
* Date: 11/28/97
* Comment:
*
*========================================================================================
*
* Environment variable _A select between NEXT PLAYER (01),MOVE UNIT (02),ATTACK (03),USE (04),NEXT TURN (05),INIT MAP (06),DIALOG (100...255).
*
>EnvVarCmpNum(_A_Calltype,01); Goto(NextPlayer); <
>EnvVarCmpNum(_A_Calltype,02); Goto(MoveUnit); <
>EnvVarCmpNum(_A_Calltype,03); Goto(Attack); <
>EnvVarCmpNum(_A_Calltype,04); Goto(Use); <
>EnvVarCmpNum(_A_Calltype,05); Goto(NextTurn); <
>EnvVarCmpNum(_A_Calltype,06); Goto(InitMap); <
>EnvVarCmpNum(_A_Calltype,100); Goto(Dialog_0); <
*
*========================================================================================
*
:Dialog_0;
**[Dialog]**
*
[END]
:Use;
**[Use]**
*
* EnvironmentVars: B = use-x, C = use-y, D = use-ActPt
*
* Switches for elevator 11,10
>EnvVarCmpNum (_B,11);
&EnvVarCmpNum (_C,11);
&EnvVarCmpNum (_D,36);
MoveCamera (7,6,11,10,14);
Elevator (11,10,0,7);
SetActPt (12,11,36);
<
>EnvVarCmpNum (_B,11);
&EnvVarCmpNum (_C,11);
&EnvVarCmpNum (_D,37);
MoveCamera (7,6,11,10,14);
Elevator (11,10,1,7);
SetActPt (12,11,37);
<
>EnvVarCmpNum (_B,12);
&EnvVarCmpNum (_C,11);
&EnvVarCmpNum (_D,36);
MoveCamera (7,6,11,10,14);
Elevator (11,10,0,7);
SetActPt (11,11,36);
<
>EnvVarCmpNum (_B,12);
&EnvVarCmpNum (_C,11);
&EnvVarCmpNum (_D,37);
MoveCamera (7,6,11,10,14);
Elevator (11,10,1,7);
SetActPt (11,11,37);
<
* Switches for elevator 31,14
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,15);
&EnvVarCmpNum (_D,36);
MoveCamera (27,10,31,14,10);
Elevator (31,14,0,7);
SetActPt (30,14,36);
<
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,15);
&EnvVarCmpNum (_D,37);
MoveCamera (27,10,31,14,10);
Elevator (31,14,1,7);
SetActPt (30,14,37);
<
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,14);
&EnvVarCmpNum (_D,36);
MoveCamera (27,10,31,14,10);
Elevator (31,14,0,7);
SetActPt (30,15,36);
<
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,14);
&EnvVarCmpNum (_D,37);
MoveCamera (27,10,31,14,10);
Elevator (31,14,1,7);
SetActPt (30,15,37);
<
* Switches for elevator 31,25
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,25);
&EnvVarCmpNum (_D,36);
MoveCamera (27,29,31,25,10);
Elevator (31,25,0,7);
SetActPt (30,24,36);
<
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,25);
&EnvVarCmpNum (_D,37);
MoveCamera (27,29,31,25,10);
Elevator (31,25,1,7);
SetActPt (30,24,37);
<
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,24);
&EnvVarCmpNum (_D,36);
MoveCamera (27,29,31,25,10);
Elevator (31,25,0,7);
SetActPt (30,25,36);
<
>EnvVarCmpNum (_B,30);
&EnvVarCmpNum (_C,24);
&EnvVarCmpNum (_D,37);
MoveCamera (27,29,31,25,10);
Elevator (31,25,1,7);
SetActPt (30,25,37);
<
* Switches for elevator 21,9
>EnvVarCmpNum (_B,20);
&EnvVarCmpNum (_C,10);
&EnvVarCmpNum (_D,36);
MoveCamera (25,9,21,9,14);
Elevator (21,9,0,15);
SetActPt (20,9,36);
<
>EnvVarCmpNum (_B,20);
&EnvVarCmpNum (_C,10);
&EnvVarCmpNum (_D,37);
MoveCamera (25,9,21,9,14);
Elevator (21,9,1,15);
SetActPt (20,9,37);
<
>EnvVarCmpNum (_B,20);
&EnvVarCmpNum (_C,9);
&EnvVarCmpNum (_D,36);
MoveCamera (25,9,21,9,14);
Elevator (21,9,0,15);
SetActPt (20,10,36);
<
>EnvVarCmpNum (_B,20);
&EnvVarCmpNum (_C,9);
&EnvVarCmpNum (_D,37);
MoveCamera (25,9,21,9,14);
Elevator (21,9,1,15);
SetActPt (20,10,37);
<
[END]
:Attack;
**[Attack]**
*
* EnvironmentVars: B = attack-x, C = attack-y
[END]
:MoveUnit:
**[MoveUnit]**
*
* EnvironmentVars: B = movetarget-x, C = movetarget-y, D = z-position(in 10cm), E = movetarget-ActPt, F = unit id
*
[END]
:NextTurn;
**[Next turn]**
*
* EnvironmentVars: B = turn
*
GetActPt (_C,31,14);
GetActPt (_F,23,0);
GetActPt (_G,13,0);
GetActPt (_H,16,21);
GetActPt (_I,6,25);
GetActPt (_J,6,29);
GetActPt (_L,1,29);
GetActPt (_M,1,0);
*Monster Tube 18,1
>EnvVarCmpNum (_B,3);
|VarCmpNum (_C,36);
MoveCamera (22,5,18,1,7);
OpenTube (18,1);
<
>VarCmpNum (_F,36);
|VarCmpNum (_G,36);
|VarCmpNum (_H,36);
|VarCmpNum (_I,36);
|VarCmpNum (_J,36);
|VarCmpNum (_L,36);
|VarCmpNum (_M,36);
SetVarNum (_K,1);
#SetVarNum (_K,0);
<
>VarGreaterNum (_K,0);
&EnvVarGreaterNum (_B,3);
InsertUnit (255,64,"",0,0,18,1,2);
InsertUnit (255,50,"",0,0,18,1,3);
<
*Monster Tube 2,28
>EnvVarCmpNum (_B,1);
MoveCamera (6,22,2,28,7);
OpenTube (2,28);
<
>VarCmpNum (_F,36);
|VarCmpNum (_G,36);
|VarCmpNum (_H,36);
|VarCmpNum (_I,36);
|VarCmpNum (_J,36);
|VarCmpNum (_L,36);
|VarCmpNum (_M,36);
SetVarNum (_K,1);
#SetVarNum (_K,0);
<
>VarGreaterNum (_K,0);
&EnvVarGreaterNum (_B,1);
InsertUnit (255,64,"",4,0,2,28,2);
InsertUnit (255,50,"",2,0,2,28,3);
<
*Monster Tube 13,19
>EnvVarCmpNum (_B,2);
MoveCamera (13,19,13,19,20);
OpenTube (13,19);
<
>VarCmpNum (_F,36);
|VarCmpNum (_G,36);
|VarCmpNum (_H,36);
|VarCmpNum (_I,36);
|VarCmpNum (_J,36);
|VarCmpNum (_L,36);
|VarCmpNum (_M,36);
SetVarNum (_K,1);
#SetVarNum (_K,0);
<
>VarGreaterNum (_K,0);
&EnvVarGreaterNum (_B,2);
InsertUnit (255,64,"",4,0,13,19,2);
InsertUnit (255,50,"",2,0,13,19,3);
<
*Monster Tube 16,8
GetUnitsInArea (_N,252,0,0,2,29);
GetActPt (_P,0,0);
>VarLowerNum (_N,4);
&VarCmpNum (_P,36);
MoveCamera (11,8,16,8,7);
OpenTube (16,8);
SetActPt (0,0,37);
<
>VarCmpNum (_F,36);
|VarCmpNum (_G,36);
|VarCmpNum (_H,36);
|VarCmpNum (_I,36);
|VarCmpNum (_J,36);
|VarCmpNum (_L,36);
|VarCmpNum (_M,36);
SetVarNum (_K,1);
#SetVarNum (_K,0);
<
>VarGreaterNum (_K,0);
&VarLowerNum (_N,4);
InsertUnit (255,64,"",0,0,16,8,2);
InsertUnit (255,50,"",0,0,16,8,3);
<
[END]
:NextPlayer;
**[Next player]**
*
* EnvironmentVars: B = turn, C = player
*
* Get numbers of units for each player. Save numbers in _A (p0),_B (p1),_C (p2),_D(p3) and _E(com).
GetUnits (_A_p0,0);
GetUnits (_E_com,255);
* Reset game control variables for saving the winconditions.
SetGameControl (0,0);
SetGameControl (4,0);
GetActPt (_F,23,0);
GetActPt (_G,13,0);
GetActPt (_H,16,21);
GetActPt (_I,6,25);
GetActPt (_J,6,29);
GetActPt (_L,1,29);
GetActPt (_M,1,0);
* Set win conditions for each player.
* Player 0:
>VarCmpNum (_F,37);
&VarCmpNum (_G,37);
&VarCmpNum (_H,37);
&VarCmpNum (_I,37);
&VarCmpNum (_J,37);
&VarCmpNum (_L,37);
&VarCmpNum (_M,37);
&VarCmpNum (_E,0);
SetGameControl (0,2);
<
* Player Computer:
GetUnits (_H,0);
>VarCmpNum (_H_p0,0);
SetGameControl (4,1);
<
*
[END]
:InitMap;
**[Init map]**
*
[END]